﻿using QLBH.DATA;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QLBH.BUSINESS
{
    public class QuyenNhanVienBus
    {
        private static QuyenNhanVienData db = new QuyenNhanVienData();

        public static QUYEN_NHAN_VIEN LayQuyenTheoMaND(string ma_nguoi_dung, int ma_chuc_nang)
        {
            return db.LayQuyenTheoMaND(ma_nguoi_dung, ma_chuc_nang);
        }
        public static string CapNhatQuyen(string ma_nguoi_dung, int ma_chuc_nang, int so_quyen)
        {
            if (db.CapNhatQuyen(ma_nguoi_dung,ma_chuc_nang,so_quyen))
            {
                return "1";
            }
            else
                return db.Error;
        }
    }
}